
export const mixin_one = {
  data(){
    return {
      isDoFilterAction: false,
      filterOperationObj: {
        select_position_attribute_id: "",
        select_class_id: "",
        select_welfare_list: "",
        select_payWay_id: "",
        select_payMoneyDay_id: "",
        select_payMoneyDay_detail: "",
        select_publish_date: ""
      }
    }
  },

  watch: {
    filterOperationObj: {
      deep: true,
      handler(newValObj, oldVal){
        // console.log('-在mixin组件--是否有筛选条件----watch监视', JSON.stringify(newValObj) );
        let arrList =  Object.values(newValObj || {});
        // console.log('-在mixin组件--生成的数组', JSON.stringify(arrList) );
        this.isDoFilterAction = arrList.length && arrList.some((cItem, index)=> cItem);
      },
    }
  },
  methods: {
    _updateFilterOperationObj(val){
      // 更新状态
      this.filterOperationObj = val
    },
  },
};
